<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>table-list-add</title>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="./lib/layui/css/layui.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="./css/xadmin.css">
    <script src="js/xadmin.js"></script>
    <script src="js/cell-add.js"></script>
    <script src="js/config.js"></script>
</head>
<body>
<div class="x-body">
    <form class="layui-form">

        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">activity_key</label>
            <div class="layui-input-inline">
                <input class="layui-input activity_key" name="activity_key" required lay-verify="required"
                       autocomplete="off">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">奖品类型</label>
            <div class="layui-input-inline">
                <select name="cell_type" lay-filter="cell_type">
                    <option value="1">优惠券</option>
                    <option value="2">积分</option>
                    <option value="3">实物</option>
                    <option value="4">谢谢参与</option>
                </select>
            </div>
        </div>
        <div id="cell_content">
            <div class="layui-form-item">
                <label class="layui-form-label">优惠券号</label>
                <div class="layui-input-inline">
                    <input class="layui-input" name="coupon_key" required lay-verify="required"
                           autocomplete="off">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">面值</label>
                <div class="layui-input-inline">
                    <input class="layui-input" name="quota" required lay-verify="required"
                           autocomplete="off">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">发行总数</label>
                <div class="layui-input-inline">
                    <input class="layui-input" name="total" required lay-verify="required"
                           autocomplete="off">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">概率百分比</label>
                <div class="layui-input-inline">
                    <input class="layui-input" name="probability" required lay-verify="required"
                           autocomplete="off">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">有效期</label>
                <div class="layui-input-inline">
                    <select lay-filter="end_type" name="end_type">
                        <option value="1">固定结束时间</option>
                        <option value="2">固定持续时间</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <div id="end_type_content">
                        <input type="text" name="deadline" class="layui-input" lay-verify="required" id="deadline" autocomplete="off">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">日最大领取次数</label>
            <div class="layui-input-inline">
                <input class="layui-input" name="max_get" required lay-verify="required" placeholder="如无上限则设置为0" autocomplete="off">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">奖品序号</label>
            <div class="layui-input-inline">
                <input class="layui-input" autocomplete="off" name="prizeorder" required lay-verify="required|number" placeholder="从指针指向逆时针显示">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">获奖图</label>
            <div class="layui-input-inline">
                <input class="layui-input" name="prizepictureurl" required lay-verify="required" placeholder="" autocomplete="off">
            </div>
        </div>




        <div class="layui-form-item">
            <div class="layui-input-inline" style="margin-left:36px">
                <a class="layui-btn" lay-submit lay-filter="cell_form">提交</a>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

</div>
</body>
</html>
